package mybatis5.dao;

import com.zzxy.mybatis5.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    SqlSession sqlSession;
    public UserDaoImpl(){

    }
    public UserDaoImpl(SqlSession sqlSession) {
        this.sqlSession = sqlSession;
    }
    public User findUserById(int id){
        User user=sqlSession.selectOne("findUserById",1);
        return user;
    }
}
